local heng__laoshen = fk.CreateSkill({
  name = "heng__laoshen",
  tags = { Skill.Compulsory },
})

Fk:loadTranslationTable{
  ["heng__laoshen"] = "劳神",
  [":heng__laoshen"] = "锁定技，当你使用【洞烛先机】结算完毕后，你失去1点体力。",
}

heng__laoshen:addEffect(fk.CardUseFinished, {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(heng__laoshen.name)
    and target == player
    and data.card.trueName == "foresight"
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    if not player.dead then
      room:loseHp(player, 1, heng__laoshen.name)
    end
  end,
})

return heng__laoshen
